using System;
using RTMBindings.Responses;

namespace RTMBindings
{
    public sealed class RTMException : Exception
    {
        public RTMFailResponse Response { get; private set; }

        public RTMException(RTMFailResponse response) : base(response.Error.Message)
        {
            Response = response;
        }
    }
}